package Com.amit.IO;

import java.io.*;

public class Lab1 {

	public static void main(String[] args) {
		
		try
		{
			
		FileOutputStream fout=new FileOutputStream("C:\\Users\\NETA JEE\\Desktop\\amit.txt");
		
		String s1="i am amit yadav";
		byte b[]=s1.getBytes();
		fout.write(b);
		fout.close();
		
		System.out.println("Success");
		
		}
		catch (Exception e) {
			
			System.out.println(e);
			
		}
		

	}

}
